package com.bolt.common.db.converts;

/**
 * Created by Administrator on 2020/7/28.
 */
public enum JavaType {

    // 基本类型
    BASE_INT("int", null),
    BASE_LONG("long", null),
    BASE_CHAR("char", null),
    BASE_BYTE("byte", null),
    BASE_BOOLEAN("boolean", null),
    BASE_SHORT("short", null),
    BASE_FLOAT("float", null),
    BASE_DOUBLE("double", null),

    // 包装类型
    STRING("String", "java.lang.String"),
    LONG("Long","java.lang.Long"),
    INTEGER("Integer", "java.lang.Integer"),
    FLOAT("Float", "java.lang.Float"),
    DOUBLE("Double","java.lang.Double"),
    BOOLEAN("Boolean","java.lang.Boolean"),
    BYTE("Byte", "java.lang.Byte"),
    BYTE_ARRAY("byte[]", "java.lang.Byte"),
    CHARACTER("Character", "java.lang.Character"),
    OBJECT("Object", "java.lang.Object"),
    DATE("Date", "java.util.Date"),
    TIME("Time", "java.querys.Time"),
    BLOB("Blob", "java.querys.Blob"),
    CLOB("Clob", "java.querys.Clob"),
    TIMESTAMP("Timestamp", "java.querys.Timestamp"),
    BIG_INTEGER("BigInteger", "java.math.BigInteger"),
    BIG_DECIMAL("BigDecimal", "java.math.BigDecimal"),
    LOCAL_DATE("LocalDate", "java.time.LocalDate"),
    LOCAL_TIME("LocalTime", "java.time.LocalTime"),
    LOCAL_DATE_TIME("LocalDateTime", "java.time.LocalDateTime");

    /**
     * 类型
     */
    private final String type;

    /**
     * 包路径
     */
    private final String pkg;

    JavaType(final String type, final String pkg) {
        this.type = type;
        this.pkg = pkg;
    }

    public String getType() {
        return this.type;
    }

    public String getPkg() {
        return this.pkg;
    }

}

 